export default {
    database : {
        type: 'mysql',
        charset : 'utf8mb4',
        host: 'localhost',
        port: 3306,
        username: 'root',
        password: 'root123',
        database: 'frog_charge',
        entities: ['dist/**/*.entity{.ts,.js}', 'dist/**/*{.ts,.js}'],
        synchronize: false,
        poolSize : 10
    },

    mongodb : {
        uri : 'mongodb://localhost:27017/frog_charge'
    },

    mongodbCollection : {
        deviceHeart : 'device_heart',
        chargeOrderRealTimeInfo : 'charge_order_real_time_info',
        chargeOrderFinishMsg : 'charge_order_finish_msg',
        chargeResponseMsg : 'charge_response_msg'
    },

    wechat : {
        appid : 'wxde0ae16dacfdfd37',
        secret : '7e109418232dd7e57105bb504094ea5c',
        authCode2SessionUrl : 'https://api.weixin.qq.com/sns/jscode2session?grant_type=authorization_code'
    },

    redis : {
        host: 'localhost',
        port: 6379,
        auth_pass: 'foobared' 
    },

    

    mqtt : {
        topic : {
            deviceReportMsg : 'deviceReportMsg',
            platformResponseMsg : 'platformResponseMsg'
        },
        options : {
            host : 'localhost',
            port : 1883,
            username : 'username',
            password : 'password',
        }
    },

    alioss : {
        region : 'oss-cn-shenzhen',
        accessKeyId : 'LTAI5tBNbKSkg4rAsqDhvogt',
        accessKeySecret : '5KjRP77kbyYN9OxdFdWEvVYmvwrYQe',
    },

    jwt : {
        expire : 3600,
        login : {
            secret : 'LTAI5tBNbKSkg4rAsqDhvogt',
            scale : 13,
        },

        refreshLogin : {
            secret : '5KjRP77kbyYN9OxdFdWEvVYmvwrYQe',
            scale : 355,
        }
    }
}